<?php

namespace App\Remote\FuYou;

use App\Remote\Remote;

class FuYouBaseRemote extends Remote
{
    public string $defaultUrl, $termUrl, $traceNo, $insCd, $key, $ftpIp, $ftpPort, $ftpUserName, $ftpPassword, $contactEmail,
        $wxAuthorizeImg, $alipayAuthorizeImg, $contactMobile, $contactPerson, $wxSetCd, $aliSetCd, $mchntUrl, $uploadUrl;

    public function __construct()
    {
        $this->defaultUrl         = config('fuyou.url');                                                            //请求url
        $this->termUrl            = config('fuyou.termUrl');                                                        //请求url 4.24 商户终端信息采集报备接口
        $this->traceNo            = config('fuyou.traceNo');                                                        //唯一流水号，机构自己定义，此字段可辅助拉取报文
        $this->insCd              = config('fuyou.insCd');                                                          //机构号,接入机构在富友的唯一代码
        $this->key                = config('fuyou.key');                                                            //秘钥
        $this->contactEmail       = config('fuyou.contactEmail');                                                   //联系邮箱
        $this->wxAuthorizeImg     = config('fuyou.wxAuthorizeImg');                                                 //微信授权二维码图片
        $this->alipayAuthorizeImg = config('fuyou.alipayAuthorizeImg');                                             //支付宝授权二维码图片
        $this->contactMobile      = config('fuyou.contactMobile');                                                  //联系电话
        $this->contactPerson      = config('fuyou.contactPerson');                                                  //联系人
        $this->aliSetCd           = config('fuyou.aliSetCd');                                                       //支付宝扣率套餐代码
        $this->wxSetCd            = config('fuyou.wxSetCd');                                                        //微信扣率套餐代码
        $this->mchntUrl           = config('fuyou.mchntUrl');                                                       //请求url 4.2.1 入账信息变更接口
        $this->uploadUrl          = config('fuyou.uploadUrl');                                                     //4.2.3 统一图片上传

        //ftp上传
        $this->ftpIp       = config('fuyou.ftp.ip');                                                               //ftp上传ip
        $this->ftpPort     = config('fuyou.ftp.port');                                                             //ftp上传port
        $this->ftpUserName = config('fuyou.ftp.userName');                                                         //ftp上传username
        $this->ftpPassword = config('fuyou.ftp.password');                                                         //ftp上传password

    }

    public static function getBaseUri(): string
    {
        return "";
    }
}
